/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package menus;

import com.sun.lwuit.Command;
import com.sun.lwuit.Form;
import com.sun.lwuit.Graphics;
import com.sun.lwuit.Image;
import com.sun.lwuit.Label;
import com.sun.lwuit.TextField;
import com.sun.lwuit.animations.Animation;

import com.sun.lwuit.events.ActionListener;
import com.sun.lwuit.util.Resources;
import java.io.IOException;
import util.Menu;

/**
 *
 * @author Eoin
 */
public class Itinerary extends Menu{
      

    protected void execute(Form f) {
         try {
            Label l = new Label(Resources.open("/resources/resources.res").getAnimation("globe"));
            f.addComponent(l);
            } catch (IOException ex) {
           //     System.out.println)("nope");
            ex.printStackTrace();
        }

        try {

            Label l=null;
            l = new Label(Resources.open("/resources/resources.res").getImage("image"));
            if(l==null){
            System.out.println("nay");}
            f.addComponent(l);
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }

    public void recycleBin() {
    }

    public void update() {
    }
}
